package com.pro.service;

import com.pro.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsPeopleListService
 * Package:com.pro.service
 * Description:
 *
 * @Date:2021/11/15 16:04
 * @Author: XJR
 */
@Service
public interface JsPeopleListService {
    //查看部门名称
    public List<JsDept> selectJsDeptName();

    //查询后台用户信息
    public List<JsUser> selectJsUser(String account, String trueName, String deptName, String registerDate,Integer limit,Integer page);
    public Integer countJsUser(String account, String trueName, String deptName, String registerDate);

    //更改账号状态
    public Boolean updateStatus(JsUser jsUser);
    //将解封后的账号添加到解封日志中
    public Boolean insertUnseal(Integer userId,Integer type,String unsealDate);
    //解封后封停日志封停结束时间改为当前的时间
    public Boolean updateUserEndDate(Integer id,Integer userId,String endDate);

    //高级检索
    public List<JsUser> selectSearchJsUser(String email, String phone, String idCard, String status, String sex, String enabled,Integer limit,Integer page);
    public Integer countSearchJsUser(String email, String phone, String idCard, String status, String sex, String enabled);

    //通过id查询用户数据详情
    public JsUser selectJsUserById(Integer id);
    public Integer countJsUserById(Integer id);

    //通过id查看用户的权限
    public List<JsUser> selectUserSettings(Integer userId);

    //更改后台用户账号状态
    public Boolean updateUserStatus(Integer userId,Integer status,Integer enabled);

    //对后台用户账户进行封停
    public Boolean insertUserClosure(JsClosure jsClosure);

    //对后台用户账户进行编辑
    public Boolean updateUser(JsUser jsUser);

    //添加后台管理人员
    public Boolean addUser(JsUser jsUser);
    //添加后台权限
    public Boolean addUserStatus(List<JsUser> jsUser);

    //删除后台权限
    public Boolean delUserStatus(Integer userId);
}
